package com.tangyuan.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: video_gift
 * @Author: jeecg-boot
 * @Date:   2024-03-12
 * @Version: V1.0
 */
@Data
@TableName("video_gift")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class VideoGift implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    private Integer id;
	/**礼物名*/
    private String giftName;
	/**礼物图片*/
    private String giftImage;
	/**礼物金额*/
    private BigDecimal giftMoney;
	/**限时优惠金额*/
    private BigDecimal giftPreferentialMoney;
	/**是否开始限时优惠*/
    private Integer giftPreferential;
    //礼物限制次数
    private Integer giftLimit;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**删除标识*/
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private Long freeNum;
}
